import numpy as np

from sklearn.preprocessing import Normalizer

X = np.array([
    [1, -1, 2],
    [2, 0, 0],
    [0, 1, -1]
], dtype=np.float64)

norm1=Normalizer(norm='max')
norm2=Normalizer(norm='l2')
norm1.fit(X)
norm2.fit(X)
print(norm1.transform(X))
print('----------------------------------')
print(norm2.transform(X))

